package com.yunji.storage.dao;

import com.yunji.common.base.IBaseDao;
import com.yunji.storage.bo.RepairRemoveBO;
import com.yunji.storage.bo.RepairSelectQueryBO;
import com.yunji.storage.bo.StorageUpdateAuditBO;
import com.yunji.storage.domain.RepairTicketDO;

public interface IRepairTicketDao extends IBaseDao<RepairTicketDO> {
    RepairTicketDO selectVO(RepairSelectQueryBO bo);

    boolean deleteByTicket(RepairRemoveBO bo);

    boolean deleteDraft(Long... repairIds);

    void resetAuditStatus(Long repairId);

    boolean create(RepairTicketDO repairTicket);

    boolean updateTicket(RepairTicketDO repairTicket);

    boolean updateAuditStatus(StorageUpdateAuditBO auditBO);
}
